package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.CustCanyinquanEntity;
import com.rentong.wx.cust.domain.CustGuanzhuEntity;
import com.rentong.wx.cust.dto.ChildPingLunDto;
import com.rentong.wx.cust.dto.CommentDto;
import com.rentong.wx.cust.dto.CustCanyinquanDto;

import com.rentong.wx.cust.dto.CustCanyinquanEntityDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:33
 */
@Mapper
public interface CustCanyinquanDao extends BaseMapper<CustCanyinquanEntity> {

    List<CustCanyinquanDto> getCustCanyinquanList(@Param("cityId")Long cityId, @Param("content") String content, @Param("longitude")BigDecimal longitude, @Param("latitude") BigDecimal latitude, @Param("sort")Integer sort, @Param("canyinquanLabelId")Long canyinquanLabelId, @Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize);

    List<CommentDto> getPingLun(@Param("canyinquanId")Long canyinquanId, @Param("custId")Long custId, @Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize);

    List<CommentDto> getChildPingLun(@Param("canyinquanPinglunId")Long canyinquanPinglunId, @Param("custId")Long custId, @Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize);

    CustCanyinquanDto getDynamicName(@Param("canyinquanId")Long canyinquanId);

    List<CustGuanzhuEntity> getGuanZhu(@Param("userId") Long userId, @Param("custId")Long custId);

    List<ChildPingLunDto> getLoadChildPingLun(@Param("canyinquanPinglunId") Long canyinquanPinglunId, @Param("pageNum")int pageNum, @Param("pageSize")int pageSize);

    void save(CustCanyinquanEntity custCanyinquanEntity);

    Integer getTotalNum(Long canyinquanId);

    List<CustCanyinquanDto> getCanyinquanList(CustCanyinquanEntityDto custCanyinquanEntityDto);


    void updatePhoneNum(@Param("canyinquanId") Long canyinquanId);
}
